package com.ymttest.database.mapping.agentrebate;

import com.ymttest.database.model.agentrebate.Ymt_ConditionType;
import com.ymttest.database.model.agentrebate.Ymt_ConditionTypeExample;
import java.util.List;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.InsertProvider;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.SelectProvider;
import org.apache.ibatis.type.JdbcType;

public interface Ymt_ConditionTypeMapper {
    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table Ymt_ConditionType
     *
     * @mbggenerated Sun Jun 28 14:53:54 CST 2020
     */
    @Insert({
        "insert into Ymt_ConditionType (ConditionTypeId, UserId, ",
        "ConditionType, Weight, ",
        "CreateTime, UpdateTime)",
        "values (#{conditionTypeId,jdbcType=INTEGER}, #{userId,jdbcType=INTEGER}, ",
        "#{conditionType,jdbcType=INTEGER}, #{weight,jdbcType=INTEGER}, ",
        "#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP})"
    })
    int insert(Ymt_ConditionType record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table Ymt_ConditionType
     *
     * @mbggenerated Sun Jun 28 14:53:54 CST 2020
     */
    @InsertProvider(type=Ymt_ConditionTypeSqlProvider.class, method="insertSelective")
    int insertSelective(Ymt_ConditionType record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table Ymt_ConditionType
     *
     * @mbggenerated Sun Jun 28 14:53:54 CST 2020
     */
    @SelectProvider(type=Ymt_ConditionTypeSqlProvider.class, method="selectByExample")
    @Results({
        @Result(column="ConditionTypeId", property="conditionTypeId", jdbcType=JdbcType.INTEGER, id=true),
        @Result(column="UserId", property="userId", jdbcType=JdbcType.INTEGER),
        @Result(column="ConditionType", property="conditionType", jdbcType=JdbcType.INTEGER),
        @Result(column="Weight", property="weight", jdbcType=JdbcType.INTEGER),
        @Result(column="CreateTime", property="createTime", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="UpdateTime", property="updateTime", jdbcType=JdbcType.TIMESTAMP)
    })
    List<Ymt_ConditionType> selectByExample(Ymt_ConditionTypeExample example);
}